<%@ include file="/common/taglibs.jsp"%>
<probiz:pageHeading pageHeadingKey="verFuncList.heading" />

<content tag="buttons">
	<probiz:iconBtn btnType="add" onclick="return fnDoAdd(this);" />
	<probiz:iconBtn btnType="delete" onclick="return fnDoMultiDelete(this);" />
</content>
<!-- 
<search:searchBox formAction="${ctxPath}/system/verFunc.html" enableMoreSearch="false">
	<div class="basic_search">
		<search:basicSearch attrPath="s.verFuncName" attrNameKey="verFunc.verFuncName" datatype="String" operator="LIKE" classes="inputtxt" labelWidth="80px"/>
	</div>
</search:searchBox>
-->

<form class="mainForm" name="verFuncListForm" method="post" action="${ctxPath}/system/verFunc.html">
	<!--editURLPath is used in TblDecorator-->
	<c:set var="editURLPath" value="/system/verFunc.html?doAction=edit&from=list" scope="page" />
	<div class="top clearfix">
		<ul class="tab">
			<li class="curr"><span><fmt:message key="verFuncList.heading"/></span></li>
		</ul>
		<%@include file="/common/pagingOnlyTop.jsp"%>
	</div>
	<div class="data">
	<c:set var="checkAll"><input type="checkbox" name="allbox" onclick="checkAll(this.form)" class="checkbox"/></c:set>
	<display:table name="${verFuncList}" cellspacing="0" cellpadding="0" uid="verFuncItem" class="list_table" export="false" requestURI="" style="width:100%">
		<display:column class="checkbox_column" title="${checkAll}" media="html">
			<input type="checkbox" name="multiIds" value="${verFuncItem.verFuncId}" class="checkbox"/>
		</display:column>
		<display:column sortable="false" url="${editURLPath}" paramId="verFuncId" paramProperty="verFuncId"
			decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="verFunc.funcTitle">
			<verFunc:verFuncDecode funcTitle="${verFuncItem.funcKey}"/>
		</display:column>
	    <display:column sortable="false" headerClass="data-table-title"
    		decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="verFunc.funcKey">
    		<verFunc:verFuncDecode funcKey="${verFuncItem.funcKey}"/>
    	</display:column>
	    <display:column sortable="false" headerClass="data-table-title"
    		decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="verFunc.funcValue">
    		<c:set var="funcItemValue"><verFunc:verFuncDecode funcValue="${verFuncItem.funcValue}"/></c:set>
    		${funcItemValue}
    	</display:column>
    	<display:column style="width: 12%;" sortable="false" headerClass="data-table-title" titleKey="productReview.action"
            decorator="com.probiz.estore.core.decorator.TblColumnDecorator">
            <c:if test="${funcItemValue eq 'on'}">
           		<a href="?doAction=offFunc&verFuncId=${verFuncItem.verFuncId}"><fmt:message key="verFunc.doOff"/></a>
           	</c:if>
			<c:if test="${funcItemValue eq 'off'}">
            	<a href="?doAction=onFunc&verFuncId=${verFuncItem.verFuncId}"><fmt:message key="verFunc.doOn"/></a>
			</c:if>
            | <a href="${ctxPath}/system/verFunc.html?doAction=edit&verFuncId=${verFuncItem.verFuncId}"><fmt:message key="common.iconBtn.edit"/></a>
        </display:column>
	</display:table>
	<%@include file="/common/pagingOnly.jsp"%>
	</div>
</form>
<script type="text/javascript">
	highlightTableRows("verFuncItem");
</script>